package pkg.lbmg.org;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;

public class Main extends Activity implements OnClickListener {

Button startButton;
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(
        WindowManager.LayoutParams.FLAG_FULLSCREEN,
        WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.main);
        
        registerViews();
        setupOnClickListeners();
        
    }

    private void registerViews() {
		
    	startButton 	= (Button)this.findViewById(R.id.intro_screen_start_button);
    	
	}

	public void setupOnClickListeners() {
        
		startButton.setOnClickListener(this);

    }
    
    public void onClick(View V) {
    	
    	switch(V.getId()) {
    	
    	case R.id.intro_screen_start_button:
    		
    		Intent introMenuIntent = new Intent(this, IntroMenu.class);
    		startActivity(introMenuIntent);
    		
    		break;


    	}

    }
}